package cn.net.model;

import java.io.Serializable;

public class Segment implements Serializable {

    /**
     * 航段信息
     */
    private static final long serialVersionUID = 1L;

    // 航司简拼
    private String carrier;
    // 航班号，如   ：CA123。航班号数字前若有多余的数字0，必须去掉，如CZ006需返回CZ6
    private String flightNumber;
    // 出发机场IATA三字码
    private String depAirport;
    // 起飞日期时间，格式：YYYYMMDDHHMM例：201203100300表示2012年3月10日3时0分
    private String depTime;
    // 到达机场IATA三字码
    private String arrAirport;
    // 到达日期时间，格式：YYYYMMDDHHMM例：201203101305表示2012年3月10日13时5分
    private String arrTime;
    // 经停地，/分隔城市三字码
    private String stopCities;
    // 代码共享标识（true代码共享/false非代码共享）
    private boolean codeShare;
    // 舱位
    private String cabin;
    // 机型
    private String aircraftCode;
    //仓位等级1经济 2商务 3头等
    private int cabinClass;

    public String getCarrier() {
        return carrier;
    }

    public void setCarrier(String carrier) {
        this.carrier = carrier;
    }

    public String getFlightNumber() {
        return flightNumber;
    }

    public void setFlightNumber(String flightNumber) {
        this.flightNumber = flightNumber;
    }

    public String getDepAirport() {
        return depAirport;
    }

    public void setDepAirport(String depAirport) {
        this.depAirport = depAirport;
    }

    public String getDepTime() {
        return depTime;
    }

    public void setDepTime(String depTime) {
        this.depTime = depTime;
    }

    public String getArrAirport() {
        return arrAirport;
    }

    public void setArrAirport(String arrAirport) {
        this.arrAirport = arrAirport;
    }

    public String getArrTime() {
        return arrTime;
    }

    public void setArrTime(String arrTime) {
        this.arrTime = arrTime;
    }

    public String getStopCities() {
        return stopCities;
    }

    public void setStopCities(String stopCities) {
        this.stopCities = stopCities;
    }

    public boolean isCodeShare() {
        return codeShare;
    }

    public void setCodeShare(boolean codeShare) {
        this.codeShare = codeShare;
    }

    public String getCabin() {
        return cabin;
    }

    public void setCabin(String cabin) {
        this.cabin = cabin;
    }

    public String getAircraftCode() {
        return aircraftCode;
    }

    public void setAircraftCode(String aircraftCode) {
        this.aircraftCode = aircraftCode;
    }

    public int getCabinClass() {
        return cabinClass;
    }

    public void setCabinClass(int cabinClass) {
        this.cabinClass = cabinClass;
    }

    @Override
    public String toString() {
        return "Segment{" +
                "carrier='" + carrier + '\'' +
                ", flightNumber='" + flightNumber + '\'' +
                ", depAirport='" + depAirport + '\'' +
                ", depTime='" + depTime + '\'' +
                ", arrAirport='" + arrAirport + '\'' +
                ", arrTime='" + arrTime + '\'' +
                ", stopCities='" + stopCities + '\'' +
                ", codeShare=" + codeShare +
                ", cabin='" + cabin + '\'' +
                ", aircraftCode='" + aircraftCode + '\'' +
                ", cabinClass=" + cabinClass +
                '}';
    }
}
